<template>
    <div>
        12345678
    </div>
</template>
<script >
import { ref } from 'vue'
import { getData } from '../api/api'
export default {

    async setup() {
        const data = ref([])
        getData().then(res => {
            data.value = res.list
            console.log(res);
        })
        return new Promise((resolve) => {
            setTimeout(() => {
                resolve(data)
            }, 1000)
        })
    }

}

</script>